package foo.bar.wiki.web.action.user;

import foo.bar.wiki.web.action.BaseActionBean;
import foo.bar.wiki.web.extension.UserTypeConverter;
import foo.bar.wiki.domain.User;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.validation.Validate;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class ViewUserActionBean extends BaseActionBean {

    private static final String VIEW = "/user/viewUser.jsp";

    @Validate(converter = UserTypeConverter.class)
    private User user;


    @DefaultHandler
    public Resolution view() {
        return new ForwardResolution(generateThemePath(VIEW));
    }



    

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
